
<link rel="stylesheet" href="__CDN__/assets/area/css/jquery.areapanel.css"/>
<script type="text/javascript" src="__CDN__/assets/area/js/jquery.js"></script>
<script type="text/javascript" src="__CDN__/assets/area/js/area.data.js"></script>
<script type="text/javascript" src="__CDN__/assets/area/js/jquery.region.js"></script>
<script type="text/javascript" src="__CDN__/assets/area/js/jquery.areapanel.js"></script>

<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
         <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">任务类型:</label>
         <div class="col-xs-12 col-sm-4">
            {$groupList}
        </div>
    </div>
    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">任务名称:</label>
         <div class="col-xs-12 col-sm-4">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
        <div class="form-group">
        <label for="c-price" class="control-label col-xs-12 col-sm-2">任务单价:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[price]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-commission" class="control-label col-xs-12 col-sm-2">佣金:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-password" data-rule="" class="form-control" name="row[commission]" type="text" value="" />
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-subtime" class="control-label col-xs-12 col-sm-2">任务提交时间:</label>
        <div class="col-xs-12 col-sm-2">
          <input id="c-subtime1" data-rule="required" class="form-control" data-use-current="true" name="row[subtime1]" type="text" value="">
        </div>
        <label for="c-subtime" class="control-label col-sm-1" style="text-align: left" >时
            </label>
        <div class="col-xs-12 col-sm-2">
          <input id="c-subtime" data-rule="required" class="form-control" data-use-current="true" name="row[subtime2]" type="text" value="">
         
        </div>
          <label for="c-subtime" class="control-label col-sm-1" style="text-align: left">分
            </label>

    </div>
    <div class="form-group">
        <label for="c-endtime" class="control-label col-xs-12 col-sm-2">提交结束时间:</label>
              <div class="col-xs-12 col-sm-4">
            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="">
        </div>

    </div>
    <div class="form-group">
        <label for="c-places" class="control-label col-xs-12 col-sm-2">名额:</label>
      <div class="col-xs-12 col-sm-4">
            <input id="c-places" data-rule="" class="form-control" name="row[places]" type="text" value="">
        </div>
    </div>
  <div class="form-group">
                    <label for="c-cityid" class="control-label col-xs-12 col-sm-2">城市：</label>
                    <div class="region col-xs-12 col-sm-4">
                        <div class="form-inline">
                            <select class="form-control" name="row[province_id]"  data-current="410000"></select>
                            <select class="form-control" name="row[city_id]" data-current="410100" ></select>
                    
                        </div>
                    </div>
                </div>

    <div class="form-group">
        <label for="c-age" class="control-label col-xs-12 col-sm-2">年龄限制:</label>
      <div class="col-xs-12 col-sm-8">
            {:build_radios('row[age]', ['1'=>'18岁以上', '0'=>'不限制','2'=>'18岁以下'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-sex" class="control-label col-xs-12 col-sm-2">性别限制:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[sex]', ['1'=>'男', '0'=>'不限制','2'=>'女'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-isremedy" class="control-label col-xs-12 col-sm-2">补救:</label>
      <div class="col-xs-12 col-sm-8">
            {:build_radios('row[isremedy]', ['1'=>'可以', '0'=>'不可以'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-istop" class="control-label col-xs-12 col-sm-2">置顶:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[istop]', ['1'=>'置顶', '0'=>'不置顶'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-examine" class="control-label col-xs-12 col-sm-2">审核周期:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-examine" data-rule="required" class="form-control" name="row[examine]" type="number" value="">
        </div>
    </div>
  <div class="form-group">
        <label for="c-pic" class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-pic" data-rule="" class="form-control" size="50" name="row[pic]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-pic" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-pic" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>
          <div class="form-group">
        <label for="c-description" class="control-label col-xs-12 col-sm-2">预览任务:</label>
      <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" data-rule="required" class="form-control editor" rows="5" name="row[description]" cols="50"></textarea>
        </div>
    </div>
      <div class="form-group">
        <label for="c-contetn" class="control-label col-xs-12 col-sm-2">任务详情:</label>
      <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>

<script type="text/javascript">
//单选城市的用法
$(".region").region()

</script>